home *** CD-ROM | disk | FTP | other *** search
- Subject: Compiling Extension
- Sent: 6/2/96 2:38 PM
- Received: 6/3/96 7:58 AM
- From: Doyle Rhynard, doyle.w.rhynard@cpmx.saic.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- I am trying to create an extension for a part editor. In order to test
- the procedure, I have made a simple test case. I am starting with the IDL
- file:
-
- #ifndef TestExt_IDL
- #define TestExt_IDL
-
- #include "Extensn.idl"
-
- interface TestExt;
-
- module ADI {
- interface TestExt: ODExtension {
- void InitTestExt(in ODObject base, in
- long initialID);
- void Run(in TestExt object);
-
- #ifdef __SOMIDL__
- implementation {
- releaseorder:
- InitTestExt,
- Run,
-
- majorversion = 1;
- minorversion = 0;
- };
- #endif
- };
- };
-
- #endif
-
- This file is included into a CW9 project. The SOMObjectsTS compiler creates
- the other SOM files without errors, although warning messages about the
- function declarations not being in the correct relase order, are generated.
-
-
- When I try to compile the .cpp file, however, I get numerous compiler
- errors from .xh file of the form:
-
- Error : ';' expected
- TestExt.xh line 144 typedef long (* SOMLINK
- somTD_ADI_TestExt_somGetSize)(ADI_TestExt
- somSelf, Environment *ev);
-
- I have tried every variation I could think of without success. I even tried
- using the SOMObjects "Hello" example and got the same type of errors.
-
- Does anyone happen to know what I am doing wrong? Better yet, does
- anyone have a simple example, of this general level of complexity, that
- will work with CW9's SOMObjectTS compiler and produce correct results?
-
- Doyle Rhynard
-
-